#include "ProcessBar.h"

int main()
{
  double total = 1024*1024 * 2048.0;
  double current = 1024*1024 * 0;

  srand(time(0));
  
  while(current <= total)
  {
    ProcBar(total, current);
    usleep(100000);

    double speed = 1024*1024 * (rand()%200 + 5);
    current += speed;
  }

  printf("\ndownload over!\n");
  
  return 0;
}

